<template>
  <div class="home-view">
    <editor @getValue="getEditorValue" :values="state.editorValues"/>
  </div>
</template>

<script setup>
import {onMounted, ref, reactive} from "vue";

const state = reactive({
  editorValues: ""
})
onMounted(()=>{
  state.editorValues = "<p>VS的VS<img src='https://fulan-edu.oss-cn-shanghai.aliyuncs.com/exerciseBook/1651721465432.jpg' />的1231231232312</p>"
})

const getEditorValue = (data) => {
  state.editorValues = data;
}
</script>
